package cloud.maque.conf.oauth2;

import lombok.Data;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

import java.util.ArrayList;
import java.util.List;

@Data
public class Oauth2Properties {


    /**
     * 服务端下的客户端配置信息
     */
    @NestedConfigurationProperty
    private List<Oauth2ServerProperties> server = new ArrayList<>();


    /**
     * 客户端下的配置信息
     */
    @NestedConfigurationProperty
    private Oauth2ClientProperties client = new Oauth2ClientProperties();


    /**
     * 是否开启模拟用户
     */
    @NestedConfigurationProperty
    Oauth2MockProperties mock = new Oauth2MockProperties();

}
